Masteriyo\Cart\Cart D

Total Complexity 148
Dependencies 11
Dependents 4
Total lines 1,616
Lines of code 547
Logical lines of code 292
Comment lines 887
Methods 57
Properties 7

Methods 57

Method Rating Maintainability Complexity Lines of code
get_cart_from_session()
B
37 20 70
populate_cart_from_order()
B
35 18 82
add_to_cart()
A
41 10 56
set_cart_cookies()
S
52 7 25
generate_cart_id()
S
58 6 14
check_cart_item_validity()
S
61 5 11
maybe_set_cart_cookies()
S
65 5 9
get_cross_sells()
S
59 4 14
set_quantity()
S
60 4 13
find_course_in_cart()
S
67 4 8
restore_cart_item()
S
61 3 12
persistent_cart_destroy()
S
69 3 6
get_cart_item_quantities()
S
65 3 8
get_cart()
S
65 3 9
remove_cart_item()
S
62 2 11
clear()
S
63 2 11
calculate_totals()
S
65 2 10
get_cart_item()
S
78 2 3
check_cart_items()
S
65 2 9
get_cart_for_session()
S
67 2 8
get_fees()
S
68 2 7
get_totals()
S
79 2 3
get_totals_var()
S
78 2 3
get_cart_hash()
S
71 2 5
get_cart_item_data_hash()
S
62 1 14
init_hooks()
S
61 1 12
fees_api()
S
82 1 3
reset_totals()
S
73 1 5
get_course_subtotal()
S
69 1 6
calculate_fees()
S
80 1 3
get_customer()
S
80 1 3
get_course_price()
S
75 1 4
get_cart_subtotal()
S
75 1 4
get_cart_total()
S
79 1 3
needs_payment()
S
78 1 3
add_fee()
S
68 1 8
__construct()
S
67 1 8
get_displayed_subtotal()
S
81 1 3
set_removed_cart_contents()
S
80 1 3
get_cart_contents()
S
79 1 3
get_removed_cart_contents()
S
81 1 3
get_subtotal()
S
78 1 3
get_cart_contents_total()
S
78 1 3
get_total()
S
78 1 3
get_fee_total()
S
78 1 3
set_cart_contents()
S
80 1 3
set_totals()
S
79 1 3
get_undo_url()
S
80 1 3
set_subtotal()
S
78 1 3
set_cart_contents_total()
S
78 1 3
set_total()
S
78 1 3
set_fee_total()
S
78 1 3
is_empty()
S
79 1 3
get_cart_contents_count()
S
78 1 3
get_item_data()
S
79 1 3
get_remove_url()
S
80 1 3
destroy_cart_session()
S
69 1 7